SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 56271: The BatchJobLoader script fails with "mmx.batchproc.server ERROR YYYY-MM-DD HH:MM:SS,MMM [main]: Unable to load objects from XML"

DetailsAboutRate It

In SAS® Merchandise Planning, the BatchJobLoader script might fail with the following error in the mmx.log:

mmx.batchproc.server ERROR YYYY-MM-DD HH:MM:SS,MMM [main]: Unable to load objects from XML
javax.xml.bind.UnmarshalException: unexpected element
(uri:"http://sas.com/framework/coe/server/xml/dto", local:"BatchJobs"). Expected elements are >
{http://merchplan.retail.sas.com/framework/coe/server/xml/jaxb/dto/batchjob}BatchJobs>
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:642)
        at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:254)
        at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:249)
        at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:116)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:1049)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:478)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:459)
        at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:148)
...

The error is generated because the batch job definition examples in the installation documentation and the sample.xml files have an incorrect BatchJobs xmlns value. BatchJobs xmlns="http://sas.com/framework/coe/server/xml/dto" should be changed to BatchJobs xmlns="http://merchplan.retail.sas.com/framework/coe/server/xml/jaxb/dto/batchjob".



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Merchandise Financial Planning and SAS Merchandise In-Season ManagementMicrosoft Windows Server 2008 R26.5_M16.5_M19.4 TS1M29.4 TS1M2
64-bit Enabled AIX6.5_M16.5_M19.4 TS1M29.4 TS1M2
Linux for x646.5_M16.5_M19.4 TS1M29.4 TS1M2
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.